﻿<Fluent:RibbonWindow x:Class="SGT.ABMDepositosView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        xmlns:s="http://www.stemasoft.com/xaml"
        mc:Ignorable="d"
        DataContext="{Binding ABMDepositos, Source={StaticResource Locator}}" 
    Background="{Binding Background, ElementName=navigationPaneExpander}" ResizeMode="CanResizeWithGrip" Width="600" Height="450">

    <Fluent:RibbonWindow.Resources>
        <ResourceDictionary>
        <BooleanToVisibilityConverter x:Key="boolToVis" />

        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/ReuxablesLegacy;component/mercury.xaml" />
        </ResourceDictionary.MergedDictionaries>


    </ResourceDictionary>
</Fluent:RibbonWindow.Resources>
    <DockPanel LastChildFill="True">
        <Fluent:Ribbon DockPanel.Dock="Top" Title="Trabajar con depositos" >
            <!--Quick Access Toolbar Items-->
            <Fluent:Ribbon.QuickAccessItems>
                <Fluent:QuickAccessMenuItem Target="{Binding ElementName=buttonGreen}"/>
            </Fluent:Ribbon.QuickAccessItems>
            <Fluent:RibbonTabItem Header="Establecer" ReduceOrder="(P),(P),(P),(P),(P)" x:Name="EditarTab" >
                <Fluent:RibbonGroupBox Header="Ejecutar">
                    <Fluent:Button LargeIcon="/SGT;component/Img/save32x32.png"  Header="Guardar" Command="{Binding EstablecerDepositoActual}" />
                    <Fluent:Button LargeIcon="/SGT;component/Img/errorIcon.png"  Header="Cerrar"  Command="{Binding IrAEntradaRemitosDeposito}"/>
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>

        </Fluent:Ribbon>
        <Grid Background="WhiteSmoke" >
       
        <DataGrid AutoGenerateColumns="False"  HorizontalAlignment="Left"  Name="dataGrid1"  SelectedItem="{Binding Path=DepositoSeleccionado}" ItemsSource="{Binding Path=Depositos}" IsReadOnly="True" Width="541" Margin="19,6,0,19">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Nombre"  Width="20*" Binding="{Binding Path=Nombre}" />
                <DataGridTextColumn Header="Dirección"  Width="50*" Binding="{Binding Path=Direccion}" />
            </DataGrid.Columns>
        </DataGrid>
        </Grid>
     
    </DockPanel>
</Fluent:RibbonWindow>
